package com.ruoyi.system.service.award.research.impl;

import java.util.List;

import com.ruoyi.system.domain.award.research.ResearchAwardTeacher;
import com.ruoyi.system.mapper.award.research.ResearchAwardTeacherMapper;
import com.ruoyi.system.service.award.research.IResearchAwardTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 科研获奖教师Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-01
 */
@Service
public class ResearchAwardTeacherServiceImpl implements IResearchAwardTeacherService
{
    @Autowired
    private ResearchAwardTeacherMapper researchAwardTeacherMapper;

    /**
     * 查询科研获奖教师
     * 
     * @param id 科研获奖教师主键
     * @return 科研获奖教师
     */
    @Override
    public ResearchAwardTeacher selectResearchAwardTeacherById(Long id)
    {
        return researchAwardTeacherMapper.selectResearchAwardTeacherById(id);
    }

    /**
     * 查询科研获奖教师列表
     * 
     * @param researchAwardTeacher 科研获奖教师
     * @return 科研获奖教师
     */
    @Override
    public List<ResearchAwardTeacher> selectResearchAwardTeacherList(ResearchAwardTeacher researchAwardTeacher)
    {
        return researchAwardTeacherMapper.selectResearchAwardTeacherList(researchAwardTeacher);
    }

    /**
     * 新增科研获奖教师
     * 
     * @param researchAwardTeacher 科研获奖教师
     * @return 结果
     */
    @Override
    public int insertResearchAwardTeacher(ResearchAwardTeacher researchAwardTeacher)
    {
        return researchAwardTeacherMapper.insertResearchAwardTeacher(researchAwardTeacher);
    }

    /**
     * 修改科研获奖教师
     * 
     * @param researchAwardTeacher 科研获奖教师
     * @return 结果
     */
    @Override
    public int updateResearchAwardTeacher(ResearchAwardTeacher researchAwardTeacher)
    {
        return researchAwardTeacherMapper.updateResearchAwardTeacher(researchAwardTeacher);
    }

    /**
     * 批量删除科研获奖教师
     * 
     * @param ids 需要删除的科研获奖教师主键
     * @return 结果
     */
    @Override
    public int deleteResearchAwardTeacherByIds(Long[] ids)
    {
        return researchAwardTeacherMapper.deleteResearchAwardTeacherByIds(ids);
    }

    /**
     * 删除科研获奖教师信息
     * 
     * @param id 科研获奖教师主键
     * @return 结果
     */
    @Override
    public int deleteResearchAwardTeacherById(Long id)
    {
        return researchAwardTeacherMapper.deleteResearchAwardTeacherById(id);
    }
}
